/*
 * =====================================================================================
 *       Filename:  xshell.c
 *    Description:  
 *        Version:  1.0
 *        Created:  2017.05.26 16：42
 *         Author:  fujiajun (fjj), fujiajun@renren1.com
 *        Company:  HOOLINKS
 * =====================================================================================
 */

#include "xshell.h"

int main() {
    char prompt[MAXPIDTABLE];
    struct Command * command;

    command = (struct Command *)malloc(sizeof(struct Command));

    while(TRUE) {
        type_prompt(prompt);
        printf("%s", prompt);
        
        clean_command(command);
        read_command(command);
        build_command(command->command, command->param);
    }

    return 0;
}